import { DepartmentItem } from '@/api/department/types'

export interface UserItem {
  id: number
  username: string
  account: string
  email: string
  createTime: string
  role: string
  department: DepartmentItem
}

export interface UserParams {
  pageSize: number
  pageIndex: number
  id: string
  username?: string
  account?: string
}
export interface UserResponse {
  list: UserItem[]
  total: number
}

export interface UserSaveData {
  id?: number
  departmentId: number
  roles: string[]
  status: true
  remark: string
  name: string
  email: string
  phone: string
}
